package com.tanhua.server.service;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.tanhua.server.mapper.QuestionaireMapper;
import com.tanhua.server.pojo.Questionaire;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class QuestionaireService {

    @Autowired
    private QuestionaireMapper questionaireMapper;

    /**
     * 获取问卷列表的信息
     */
    public List<Questionaire> queryQuestionaireList() {
        QueryWrapper queryWrapper = new QueryWrapper();
        List<Questionaire> questionaireList = questionaireMapper.selectList(queryWrapper);
        return questionaireList;
    }
}
